-- GENERATED SPELL FOR [Ghastly Haunt] --


function spell0_16481(pUnit, Event) --@Shadow Shock,n/a--
pUnit:FullCastSpellOnTarget(29712,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16481', 533, 1)
end

function Sorts_16481(pUnit, Event)
local choix_sorts_16481 = math.random(0, 0)
if choix_sorts_16481 == 0 then
pUnit:RegisterEvent('spell0_16481', 1, 1)
end
end

function mob16481_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16481', math.random(1500, 3000), 1)
end

function mob16481_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16481_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16481_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16481, 1, 'mob16481_Action')
RegisterUnitEvent(16481, 2, 'mob16481_Leave')
RegisterUnitEvent(16481, 3, 'mob16481_Kill')
RegisterUnitEvent(16481, 4, 'mob16481_Die')
